﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FCMGAAI
{
    public partial class ValidasiForm : Form
    {
        Validasi Vd;
        public ValidasiForm()
        {
            InitializeComponent();
        }
        public ValidasiForm(Validasi _vd)
        {
            Vd = _vd;
            InitializeComponent();
        }

        private void BtnHitungValClus_Click(object sender, EventArgs e)
        {
            if (radioButton1.Checked)
            {
                Vd.ValidationOperate(0);
            }
            else if (radioButton2.Checked)
            {
                Vd.ValidationOperate(1);
            }
            TxtBoxFuc.Text = Vd.FUc2.ToString();
            TxtBoxHuc.Text = Vd.HUc2.ToString();
            TxtBoxSuc.Text = Vd.SUc.ToString();
        }
    }
}
